package com.teamall.web.sjtj.db.dao.mapper;

import com.teamall.web.sjtj.db.arg.CodeVisitedAidRankMonthArg;
import com.teamall.web.sjtj.db.po.CodeVisitedAidRankMonthPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeVisitedAidRankMonthMapper {
    
    List<Integer> countByArg(CodeVisitedAidRankMonthArg arg);

    List<CodeVisitedAidRankMonthPO> selectByArg(CodeVisitedAidRankMonthArg arg);

    CodeVisitedAidRankMonthPO selectByPrimaryKey(String id);

    List<CodeVisitedAidRankMonthPO> selectByArgAndPage(CodeVisitedAidRankMonthArg arg, RowBounds rowBound);

    int insert(CodeVisitedAidRankMonthPO record);

    int insertSelective(CodeVisitedAidRankMonthPO record);

    int insertBatch(@Param("list") List<CodeVisitedAidRankMonthPO> records);

    int updateByArgSelective(@Param("record") CodeVisitedAidRankMonthPO record,
            @Param("arg") CodeVisitedAidRankMonthArg arg);

    int updateByArg(@Param("record") CodeVisitedAidRankMonthPO record,
            @Param("arg") CodeVisitedAidRankMonthArg arg);

    int updateByPrimaryKeySelective(CodeVisitedAidRankMonthPO record);

    int updateByPrimaryKey(CodeVisitedAidRankMonthPO record);
    
    int deleteByArg(CodeVisitedAidRankMonthArg arg);
    
    int deleteByPrimaryKey(String id);
    
}